import { Component, OnInit } from '@angular/core';
import { BladeService } from "../../../shared/blade.service";
import { BladeData } from "../../../shared/blade/blade-data";
import { Observable } from "rxjs/Observable";
import { MatrixStateGroupListComponent } from "./matrix-state-group-list/matrix-state-group-list.component";
import { Blade } from "../../../shared/blade/blade.model";

@Component({
  selector: 'app-matrix-config',
  templateUrl: './matrix-config.component.html',
  styleUrls: ['./matrix-config.component.css'],
  providers: [BladeService]
})
export class MatrixConfigComponent implements OnInit {

  
  constructor(public bladeService: BladeService) { }

  ngOnInit() {
    this.createFarmListtBlade()
  }
  /**
   * 创建状态组列表弹出层
   * 
   * 
   * @memberof DicComponent
   */
  createFarmListtBlade() {
    let data: BladeData = new BladeData();
    data.id = "matrixStateGroupList";
    data.title = "状态组列表";    
    data.isClosingDisabled = true;
    let matrixStateGroupListBlade = this.bladeService.createBlade(MatrixStateGroupListComponent, data);
    this.bladeService.showBlade(matrixStateGroupListBlade);
  }
   /**
   * 是否可以离开
   * 
   * 
   * @memberof DicComponent
   */
  canDeactivate(): boolean | Observable<boolean> | Promise<boolean> {
    return true;
  }

}



// WEBPACK FOOTER //
// ./src/app/module/basic/matrix-config/matrix-config.component.ts